/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.citi.dahg.cve.controller.model;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 *
 * @author dh90940
 */
@Entity
public class Vacacion implements Serializable {
    
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
    
    @ManyToOne
    @JoinColumn(name = "fk_recurso")
    private Recurso recurso;
    
    @ManyToOne
    @JoinColumn(name = "fk_periodo")
    private Periodo periodo;
    
    @Column(name = "es_freeze")
    private Boolean isFreeze;
    
    @Column(name = "inicio_programada")
    @Temporal(TemporalType.DATE)
    private Date inicioProgramada;
    
    @Column(name = "fin_programada")
    @Temporal(TemporalType.DATE)
    private Date finProgramada;
    
    @Column(name = "inicio_real")
    @Temporal(TemporalType.DATE)
    private Date inicioReal;
    
    @Column(name = "fin_real")
    @Temporal(TemporalType.DATE)
    private Date finReal;
    
    private String comentarios;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Recurso getRecurso() {
        return recurso;
    }

    public void setRecurso(Recurso recurso) {
        this.recurso = recurso;
    }

    public Periodo getPeriodo() {
        return periodo;
    }

    public void setPeriodo(Periodo periodo) {
        this.periodo = periodo;
    }

    public Boolean isIsFreeze() {
        return isFreeze;
    }

    public void setIsFreeze(Boolean isFreeze) {
        this.isFreeze = isFreeze;
    }

    public Date getInicioProgramada() {
        return inicioProgramada;
    }

    public void setInicioProgramada(Date inicioProgramada) {
        this.inicioProgramada = inicioProgramada;
    }

    public Date getFinProgramada() {
        return finProgramada;
    }

    public void setFinProgramada(Date finProgramada) {
        this.finProgramada = finProgramada;
    }

    public Date getInicioReal() {
        return inicioReal;
    }

    public void setInicioReal(Date inicioReal) {
        this.inicioReal = inicioReal;
    }

    public Date getFinReal() {
        return finReal;
    }

    public void setFinReal(Date finReal) {
        this.finReal = finReal;
    }

    public String getComentarios() {
        return comentarios;
    }

    public void setComentarios(String comentarios) {
        this.comentarios = comentarios;
    }
    
    
}
